import request from "@/utils/request.js";

const url = '/cloud-sys-service/test'

/**
 * 分页查询短信账户
 */
export function page(data) {
    return request({
        url: url + "/page",
        method: "post",
        data
    });
}

/**
 * 发起流程
 */
export function create(data) {
    return request({
        url: url + "/create",
        method: "post",
        data
    });
}

/**
 * 通过流程
 */
export function pass(data) {
    return request({
        url: url + "/pass",
        method: "post",
        data
    });
}

/**
 * 否决流程
 */
export function refuse(data) {
    return request({
        url: url + "/refuse",
        method: "post",
        data
    });
}

/**
 * 删除业务数据
 */
export function removeById(id) {
    return request({
        url: url + `/removeById/${id}`,
        method: "get",
    });
}

/**
 * 数据回显
 */
export function getProcessInfo(id) {
    return request({
        url: url + `/info/${id}`,
        method: "get",
    });
}

// 列表相关列信息
export const columnInfo = [
    {
        "title":"序号",
        "type":"seq",
        "fixed":"left",
        "align":"center",
        "width":"60"
    },
    {
        "type":"checkbox",
        "fixed":"left",
        "align":"center",
        "width":"60"
    },
    {
        "title":"流程状态",
        "field":"processStatusTxt",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"接交人",
        "field":"handoverPersonTxt",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"监交人",
        "field":"supervisorTxt",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"移交人",
        "field":"transferorTxt",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"公司名称",
        "field":"orgIdTxt",
        "align":"center",
        "minWidth":"150"
    },
    {
        "title":"工号",
        "field":"personCode",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"任职团队",
        "field":"deptId",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"任职岗位",
        "field":"postId",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"交接内容",
        "field":"handoverContent",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"公司资产内容",
        "field":"companyAssetsContent",
        "align":"center",
        "minWidth":"100"
    },
    {
        "title":"操作",
        "field":"operate",
        "fixed":"right",
        "align":"center",
        "proxyColumn":true,
        "minWidth":"170px",
        /*"options":[
            {
                "text":true,
                "btnName":"重置密码",
                "type":"primary",
                "icon":"RefreshLeft",
                "method":"showFormDialog"
            },
        ]*/
    }
]
